<h1>Add existing J! Instance</h1>
<p>Please enter the required information to add a Joomla! Instance to the database.</p>

<form name="adminForm" id="adminForm" action="<?php echo JRoute::_('index.php?option=com_easiv2') ?>" method="post">
	<table>
		<tr>
			<td>Site Name*:</td>
			<td><input class="inputField" type="text" name="name" id="name" value="<?php if(JRequest::getVar('name') != "") echo JRequest::getVar('name'); else echo 'Default Joomla! Site'; ?>" />
		</tr>
		<tr>
			<td>HTTP address*:</td>
			<td><input class="inputField" type="text" name="http_address" value="<?php echo JRequest::getVar('http_address'); ?>" />
			<span class="description">Basic Frontend URL</span>
		</tr>
		<tr>
			<td>FTP host*:</td>
			<td><input class="inputField" type="text" name="ftp_host" value="<?php echo JRequest::getVar('ftp_host'); ?>" />
		</tr>
		<tr>
			<td>FTP port*:</td>
			<td><input class="inputField" type="text" name="port" value="<?php if(JRequest::getVar('port') != "") echo JRequest::getVar('port'); else echo "21"; ?>" />
		</tr>
		<tr>
			<td>FTP host folder:</td>
			<td><input class="inputField" type="text" name="host_folder" value="<?php echo JRequest::getVar('host_folder'); ?>" />
			<span class="description">Root folder of your Joomla! installation</span>
		</tr>
		<tr>
			<td>FTP username*:</td>
			<td><input class="inputField" type="text" name="ftp_user" value="<?php echo JRequest::getVar('ftp_user'); ?>" />
		</tr>
		<tr>
			<td>FTP password*:</td>
			<td><input class="inputField" type="password" name="ftp_pass" />
		</tr>
		<tr>
			<td colspan="2"><br><b>*... Required</b></td>
	</table>
	
	<input type="hidden" name="option" value="com_easiv2" />
	<input type="hidden" name="view" value="addExistingInstance" />
	<input type="hidden" name="task" value="" />
</form>